import request from "@/utils/request";

// 查询玩家账号列表
export function getPlayerList(data) {
  return request({
    url: "/player/list",
    method: "get",
    params: data,
  });
}

export function searchPlayerList(data) {
  return request({
    url: "/player/search",
    method: "get",
    params: data,
  });
}

// 查询玩家信息
export function getPlayerInfo(data) {
  return request({
    url: "/player/info",
    method: "get",
    params: data,
  });
}

// 获取关联的微信和玩家账号信息
export function getPlayerWxRelation(data) {
  return request({
    url: "/player/relation/wx",
    method: "get",
    params: data,
  });
}

// 获取关联的微信和玩家账号信息
export function bindOrUnbindWx(data) {
  return request({
    url: "/player/update_relation",
    method: "post",
    data,
  });
}




